{% extends "base.html" %}
{% block content%}
<div id="part-content">
{% if posts %}
{% for post in posts %}
<!--post-->
	<div id="post-{{post.id}}" class="post-home">
		<div class="post-title">
			<h1><a href="{{post.link}}" rel="bookmark" title="永久链接到{{post.title}}">{{post.title}}</a></h1>
		</div>
		<div class="post-content">
			{{post.preview}}
		</div>
		<div class="post-time">{{post.date|date:"HH:mm yyyy-MM-dd"}}</div>
	</div>	
	<div class="post-messages"><p><span style="float:left">{% if post.tags %}Tags: {%for tag in post.tags %}<a href="{{site.url}}tag/{{tag.slogan}}.html" rel="tag">{{tag.name}}</a> {%endfor%}{%endif%}  
	Posted in {%for cate in post.categories%} <a href="{{site.url}}category/{{cate.slogan}}.html" title="查看 {{cate.name}} 的全部文章" rel="category tag">{{cate.name}}</a> {%endfor%}  {%if self.is_admin%}<a href="{{site.url}}jva.log?a=Post&d=edit&id={{post.id}}">Edit</a>  {%endif%}</span>
	 <span style="float:right"><a href="{{post.link}}#comment" title="{{post.title}}上的评论">&nbsp;评论 ( {{post.commentCount}} )</a> </span></p>
	 </div>
<!-- -->
{% endfor %}
	<div class="navigation">
			{% if pager.prev %}
			<div class="alignleft"><a href="{{site.url}}post/{{pager.prev}}.html">&laquo; 上一页</a></div>
			{% endif %}
			{% if pager.next %}
			<div class="alignright"><a href="{{site.url}}post/{{pager.next}}.html">下一页 &raquo;</a></div>
			{% endif %}
	</div>
{% else %}
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
{% endif %}
</div>
{% include "sidebar1.html" %}
{% include "sidebar2.html" %}
{% endblock %}
